//-----------------------------------------------------
// guistaticentity.h
//-----------------------------------------------------

/**
* @file guistaticentity.h
*/

#pragma once

#include "guientity.h"

class nGfxObject;

namespace nebulaGUI {

	class NGUIStaticEntity : public nebulaGUI::NGUIEntity {

	protected:

		nGfxObject *nebulaEntity;

	public:

		// Constructor
		NGUIStaticEntity();

		// Destructor
		virtual ~NGUIStaticEntity();

		// Entity drawing
		virtual bool render();

		// Set the graphic resource must be called before loadResource()
		virtual bool setResource(const char *nFile);

		// Load the graphic resource setResource() must be called before
		virtual bool loadResource();

		// Unload the graphic resource
		virtual void unloadResource();

		/********************************
		 *		OBSERVER METHODS		*
		 ********************************/

		// Method called when the entity position is changed
		virtual void positionChanged(const logic::CEntity *entity, const tools::CVector &pos);

	}; // class NGUIStaticEntity

}; // namespace nebulaGUI